﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.Data.Linq.Mapping;

namespace SSTU.Data
{
	[Table(Name = "Groups")]
	public class GroupEntity
	{
		public GroupEntity()
		{
		}

		public GroupEntity(string id, string shortName = null, string longName = null, bool isFavorite = false, string facultyId = null)
		{
			Id = id;
			ShortName = shortName;
			LongName = longName;
			IsFavorite = isFavorite;
			FacultyId = facultyId;
		}

		[Column(IsPrimaryKey = true)]
		public string Id { get; set; }

		[Column(CanBeNull = true)]
		public string ShortName { get; set; }

		[Column(CanBeNull = true)]
		public string LongName { get; set; }

		[Column]
		public bool IsFavorite { get; set; }

		[Column(CanBeNull = true)]
		public string FacultyId { get; set; }
	}
}
